<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ include file="/includes/taglibs.jsp"%>
<%@ taglib uri="/WEB-INF/extremecomponents.tld" prefix="ec"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/extremecomponents.css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.4.2.min.js"></script>
<style type="text/css">
	.eXtremeTable .tableHeader {
	height: 26px; 
	line-height:25px;
	background:url(/images/platform/tr.jpg) repeat;
	color: #000;
	font-weight: bold;
	border: 0px solid #CCC;
	background-image: url("/images/platform/tr1.jpg") no-repeat;
	background-position: top right;
	white-space: nowrap;
	overflow: hidden;
}
</style>

<script type="text/javascript">
	
	function listCourse(){
	var status = $("#status").val();
	var action = "listCourseJson.action?course.status="+status;
	$.getJSON(action,function(data){
		var json = eval(data);
		$.each(json,function(i,n){
			$("#courseId").append('<option value='+json[i].id+'>'+json[i].name+'</option>');
		})
	})
	}
	
</script>
</head>
	<body>
		<div id="man_zone">
		<form action="singleScoreRank.action" method="post" id="form1" >
		
		 <table class="table_style" border="0" align="center"  cellpadding="3" cellspacing="1" width="800px">
		   	<tr>
		   		<td class="left_title_1">课程类型:</td>
		   		<td>
		   			<select  id="status" onchange="listCourse();">
		   				<option value="1">必选课</option>
		   				<option value="2">限选课</option>
		   				<option value="3">通选课</option>
		   				
		   			</select>
		   	   </td>	
		   	
		   		<td class="left_title_1">课程:</td>
		   		<td>
		   			<select id="courseId" name="score.course.id">
						<option>---请选择专业---</option>
					   </select>
		   		</td>	
		   		<td><input type="submit" value="查询" /></td>
		   	</tr>
		 
		  </table>
		
		</form>
          <ec:table retrieveRowsCallback="limit" cellspacing="1" filterable="false"   items="scores" var="score" action="scoreRank.action">
				<ec:row>
					<ec:column property="student.stuNo"  title="学号" width="10%" />
					<ec:column property="student.name"  title="学生名称" width="10%" />
					<ec:column property="course.name"  title="课程名称" width="10%" />
					<ec:column property="point"  title="成绩" width="10%" />
					<ec:column property="avgPoint"  title="绩点" width="10%" />
					<ec:column property="course.credit"  title="学分" width="10%" />
					<ec:column property="conPoint"  title="全绩点" width="10%" />
					<ec:column property="course.term"  title="学期" width="10%" />
				</ec:row>
		</ec:table>				
		</div>
	</body>
</html>